<?php
class Main extends CI_controller{
    function __construct(){
        parent::__construct();
    }

    function index(){
        if(!is_logged_in(true)) return;
        $data['iconMenu'] = $this->load->view("admin/iconMenu", array('iconMenuItems' => $this->iconMenu()), TRUE);
        $this->load->view("admin/template.php", $data);
    }

    function iconMenu(){
        load_lang_file('icons');
        $url = site_url("admin").'/';
        return array(
            0 => array(
                'href' => $url.'users',
                'title' => $this->lang->line('manage_users_and_accounts'),
                'img' => '16_48x48.png',
                'span_title' => $this->lang->line('users')
            ),
        );
    }

}
?>